﻿namespace com.oakwoodsys.Exceptions.SharePointExceptions
{
    using System;

    [Serializable]
    public class FileNotFoundOrAddedAsSPListItemAttachmentException : Exception
    {
        #region Constructors

        public FileNotFoundOrAddedAsSPListItemAttachmentException( )
            : base("The specified file was not added as an attachment to the specified SPListItem because the file could not be found or accessed.")
        {
        }

        public FileNotFoundOrAddedAsSPListItemAttachmentException( string fileName )
            : base(string.Format( "The specified file '{0}' was not added as an attachment to the specified SPListItem because the file could not be found or accessed.", fileName ))
        {
        }

        #endregion Constructors
    }
}